Class PropsEditor<TProps>

Assembly: redb.PropsEditor.dll
public class PropsEditor<TProps> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender where TProps : class

Inheritance

Object→ComponentBase→PropsEditor<TProps>

Implements

Properties

IsSaving

Whether save is in progress.

[Parameter]
public bool IsSaving { get; set; }

OnlyShowProperties

If set, only these properties will be shown (whitelist mode).

[Parameter]
public HashSet<string>? OnlyShowProperties { get; set; }

OnSave

Called when Save button is clicked.

[Parameter]
public EventCallback OnSave { get; set; }

ReadOnlyPropertyNames

Property names that should be read-only (in addition to [PropsReadOnly] attribute).

[Parameter]
public HashSet<string>? ReadOnlyPropertyNames { get; set; }

ShowHeader

Whether to show the header with type name.

[Parameter]
public bool ShowHeader { get; set; }

ShowSaveButton

Whether to show the Save button.

[Parameter]
public bool ShowSaveButton { get; set; }

Value

The Props object to edit.

[Parameter]
public TProps? Value { get; set; }

ValueChanged

Called when the value changes.

[Parameter]
public EventCallback<TProps> ValueChanged { get; set; }

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied .

protected override void BuildRenderTree(RenderTreeBuilder __builder)

OnParametersSet()

Method invoked when the component has received parameters from its parent in

protected override void OnParametersSet()